<!DOCTYPE html>
<html>
	<meta charset="utf-8">
	<title>隐患表单</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="css/mui.min.css">
	<link rel="stylesheet" type="text/css" href="css/app.css" />
	<link rel="stylesheet" type="text/css" href="css/mui.picker.min.css" />
	<link rel="stylesheet" type="text/css" href="css/form.css">
	<link  rel="stylesheet" type="text/css"  href="css/webuploader.css"/>
	<link  rel="stylesheet" type="text/css"  href="libs/select2/select2.min.css"/>
	<link  rel="stylesheet" type="text/css"  href="libs/select2/select2-bootstrap.css/>
	<body class="up_body">
		<div class="mui-content up_form_content">
			<!--表单start-->
			<form class="mui-input-group up_group">
				<div class="up_gray"></div>
				<div class="up_gray"></div>
				<div class="up_row">
					<label><font>*</font>检查单位</label>
					<input type="text" value="太原化工厂" readonly>
					<input type="hidden" value="" name="CreateOrganizationID">
					<div class="clear_both"></div>
				</div>
				<div class="up_row">
					<label><font>*</font>检查人：</label>
					<input type="text" value="姜俊杰" readonly>
					<input type="hidden" value="" name="CreateUserID">
					<div class="clear_both"></div>
				</div>
				<div class="up_gray"></div>
				<div class="up_row">
					<label><font>*</font>检查时间</label>
					<input type="text" class="date-select icon_more" placeholder="请选择时间" name="FindDate"  readonly>
					<div class="clear_both"></div>
				</div>
				<div class="up_row record-select" data='[{"value": "ywj","text": "晚班"},{"value": "aaa","text": "中班"},{"value": "222","text": "早班"}]'>
					<label><font>*</font>班次</label>
					<input type="text" class="record-select-data icon_more" placeholder="请选择" readonly>
					<input type="hidden" class="record-select-id" name="ShiftID">
					<icon class="icon_more fright"></icon>
					<div class="clear_both"></div>
				</div>
				<div class="up_row record-select" data='[{"value": "ywj","text": "一般隐患"},{"value": "aaa","text": "重大隐患"},{"value": "222","text": "特大隐患"}]'>
					<label><font>*</font>隐患类型</label>
					<input type="text" class="record-select-data icon_more" placeholder="请选择" readonly>
					 <input type="hidden" class="record-select-id" name="HIHiddenDangerTypeID">
					<icon class="icon_more fright"></icon>
					<div class="clear_both"></div>
				</div>
				<div class="up_row record-select" data='[{"value": "ywj","text": "一般隐患"},{"value": "aaa","text": "重大隐患"},{"value": "222","text": "特大隐患"}]'>
					<label><font>*</font>隐患等级</label>
					<input type="text" class="record-select-data icon_more" placeholder="请选择" readonly>
					<input type="hidden" class="record-select-id" name="HIHiddenDangerLevelID">
					<icon class="icon_more fright"></icon>
					<div class="clear_both"></div>
				</div>
				<div class="up_row">
					<label><font>*</font>整改期限</label>
					<input type="text" class="date-select icon_more" placeholder="请选择时间" name="DeadLine"  readonly>
					<icon class="icon_more fright"></icon>
					<div class="clear_both"></div>
				</div>
				<div class="mui-input-row up_row up_file_list">
					<label><font>*</font>责任单位</label>
					<input type="hidden" name="ResOrganizationID"/>
					<div class="up_file_right">
						<div class="up_file"></div>
						<div class="clear_both"></div>
						<div class="up_file_tj"></div>
						<div></div>
					</div>
					<div class="clear_both"></div>
				</div>
				<div class="mui-input-row up_row up_file_list">
					<label><font>*</font>整改责任人</label>
					<input type="hidden" name="ResUserID"/>
					<div class="up_file_right">
						<div class="up_file"></div>
						<div class="clear_both"></div>
						<div class="up_file_tj"></div>
						<div></div>
					</div>
					<div class="clear_both"></div>
				</div>
				<div class="mui-input-row up_row up_file_list">
					<label><font>*</font>复查人</label>
					<input type="hidden" name="ReviewUserID"/>
					<div class="up_file_right">
						<div class="up_file"></div>
						<div class="clear_both"></div>
						<div class="up_file_tj"></div>
						<div></div>
					</div>
					<div class="clear_both"></div>
				</div>
				<div class="mui-input-row up_row up_file_list">
					<label><font>*</font>审核人</label>
					<select class="form-control">
						<option value="">--请选择开发语言--</option>
						<option value="Java">Java</option>
					</select>
					<!-- <input type="hidden" name="FirstUserID"/>
					<div class="up_file_right">
						<div class="up_file"></div>
						<div class="clear_both"></div>
						<div class="up_file_tj"></div>
						<div></div>
					</div> -->
					<div class="clear_both"></div>
				</div>
				<div id="filePicker" class="up_file_img"></div>
				<div class="mui-input-row up_row up_file_list up_fileimg_list">
					<input type="hidden" name="CreateAttachment"/>
					<label><font></font>隐患附件</label> 
					<div class="clear_both"></div>
					<div class="up_fileimg_right">
						<div id="preview"></div>
						<div class="clear_both"></div>
						<div></div>
					</div>
					<div class="clear_both"></div>
				</div>
				<div class="up_gray"></div>
				<div class="up_row">
					<label><font>*</font>隐患内容</label>
					<textarea rows="5" placeholder="请输入隐患内容" name="HDName"></textarea>
				</div>
				<div class="up_row">
					<label><font>*</font>隐患地点</label>
					<textarea rows="5" placeholder="请输入隐患内容" name="HDPlace"></textarea>
				</div>
				<div class="up_row">
					<label><font>*</font>整改要求</label>
					<textarea rows="5" placeholder="请输入整改要求" name="RectificationRequest"></textarea>
				</div>
				<div class="up_gray"></div>
				<!--表单end-->
				<div class="up_button">
					<input type="button" id="submit" class="up_button_left" value="提交" />
					<input type="button" class="up_button_right" value="保存" /></div>
				<div class="clear_both"></div>
			</form>
		</div>
	</body>
	<script src="js/mui.min.js"></script>
	<script src="js/jquery.js"></script>
	<script src="js/mui.picker.min.js"></script>
	<script src="js/form.js"></script>
	<script src="js/webuploader.js"></script>
	<script src="libs/select2/select2.min.js"></script>
	<script>
		$(document).ready(function() {
		    $('.form-control').select2();
		});
		// 初始化Web Uploader
		var uploader = WebUploader.create({
		    // 选完文件后，是否自动上传。
		    auto: true,
		
		    // 文件接收服务端。
		    server: 'http://39.104.15.31:8066/public/UpoladFiles',
		
		    // 选择文件的按钮。可选。
		    // 内部根据当前运行是创建，可能是input元素，也可能是flash.
		    pick: '#filePicker',
		
		    // 只允许选择图片文件。
		    accept: {
		        title: 'Images',
		        extensions: 'gif,jpg,jpeg,bmp,png',
		        mimeTypes: 'image/*'
		    }
		});
		uploaderInit(uploader);
		$(document).on("click",".file_close",function(){
			var fileDiv = $(this).parent();
			var fileId = fileDiv.attr("id");
			fileDiv.remove();
			uploader.removeFile(fileId);
		})
	</script> 
</html>
